:root {
    --primary-color: #1890ff;
    --primary-dark: #096dd9;
    --secondary-color: #52c41a;
    --accent-color: #fa8c16;
    --text-color: #262626;
    --text-light: #595959;
    --background-color: #f5f5f5;
    --card-bg: #ffffff;
    --border-color: #e8e8e8;
    --error-color: #f5222d;
    --success-color: #52c41a;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

header {
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.logo a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 1.25rem;
}

main {
    flex: 1;
    padding: 1rem 0;
}

footer {
    padding: 1rem 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

/* 主页部分 */
.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* 选择卡片 */
.selection-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.selection-card {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.selection-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.selection-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(24, 144, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.selection-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.selection-card h2 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.selection-card p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

/* 卡片 */
.card {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    position: relative;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* 表单 */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

input, textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-family: inherit;
    font-size: 0.875rem;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.password-input-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.password-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.875rem;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: #f0f0f0;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 0.375rem;
    border-radius: 0.25rem;
    background-color: var(--border-color);
    color: var(--text-color);
}

.btn-icon:hover {
    background-color: var(--primary-color);
    color: white;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* 链接容器 */
.link-container {
    display: flex;
    margin-bottom: 1rem;
}

.link-container input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.link-container button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* 信息组 */
.info-group {
    margin-bottom: 1rem;
}

.info-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* 说明 */
.instructions {
    background-color: rgba(24, 144, 255, 0.1);
    border-left: 3px solid var(--primary-color);
    padding: 0.75rem;
    border-radius: 0.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.instructions p {
    margin-bottom: 0.25rem;
}

.instructions p:last-child {
    margin-bottom: 0;
}

/* 功能特点 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(24, 144, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.feature p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* 消息内容 */
.message-content-wrapper {
    background-color: rgba(24, 144, 255, 0.05);
    border-radius: 0.25rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(24, 144, 255, 0.2);
}

.message-content-wrapper h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

.message-content {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.875rem;
}

.message-notice {
    background-color: rgba(245, 34, 45, 0.1);
    border-left: 3px solid var(--error-color);
    padding: 0.75rem;
    border-radius: 0.25rem;
    margin-top: 1rem;
    font-size: 0.75rem;
}

.message-notice p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--error-color);
}

.message-info {
    margin-bottom: 1.25rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* 实用类 */
.hidden {
    display: none;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .selection-container {
        grid-template-columns: 1fr;
    }
}

/* 消息柜样式 */
.lockers-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.locker-card {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.locker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.locker-number {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.locker-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 1rem 0;
    text-align: center;
}

.locker-capacity {
    width: 100%;
    margin-top: 1rem;
}

.capacity-bar {
    height: 0.5rem;
    background-color: #f0f0f0;
    border-radius: 0.25rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.capacity-bar.large {
    height: 1rem;
    margin: 1.5rem 0;
}

.capacity-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 0.25rem;
    transition: width 0.3s ease;
}

.capacity-fill.capacity-good {
    background-color: #52c41a;
}

.capacity-fill.capacity-warning {
    background-color: #faad14;
}

.capacity-fill.capacity-critical {
    background-color: #f5222d;
}

.capacity-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

/* 消息柜详情页样式 */
.locker-detail-container {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin: 2rem 0;
}

.locker-status {
    margin-bottom: 2rem;
}

.status-full {
    color: var(--error-color);
    font-weight: bold;
}

.status-available {
    color: var(--success-color);
    font-weight: bold;
}

.locker-tabs {
    margin-top: 2rem;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.3s;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    font-weight: bold;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-content {
    padding: 1rem 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.message-box {
    background-color: #f9f9f9;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.message-box.error {
    background-color: rgba(245, 34, 45, 0.1);
    color: var(--error-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.message-box.error i {
    font-size: 1.5rem;
}

.back-section {
    margin: 2rem 0;
    text-align: center;
}

/* 导航栏样式 */
.navbar {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 页脚样式 */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

/* 响应式导航 */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 0 0.75rem;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .lockers-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .tab-header {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-btn {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .tab-btn.active::after {
        display: none;
    }
}
